﻿using System;
using System.Collections.Generic;
using System.Text;
using SwinGame;

namespace SurvivalNN.src
{

    class PropController : IPropController
    {

        public PropController(IEntitySubModel model)
        {
            SetTargetModel(model);
        }

        public void SetTargetModel(IEntitySubModel model)
        {
            MovePropHandler += model.MovePositionResponse;
        }

        //event handlers
        public event EventHandler<MovePropEventArgs> MovePropHandler;

        //actions
        public void MovePropAction(bool isRelative, Vector dp)
        {
            MovePropHandler(this, new MovePropEventArgs(dp, isRelative));
        }
    }
}
